package
{
	import com.gutils.cache.BitmapCache;
	import com.gutils.cache.ClipCacheFactory;
	import com.gutils.optimisation.FPS;
	
	import flash.display.Sprite;
	
	public class GamesUtilsProject extends Sprite
	{
		public function GamesUtilsProject()
		{
			fps();
			cacheClips();			
		}
		
		private function fps():void
		{
			var fps:FPS = new FPS();
			addChild(fps);
		}
		
		private function cacheClips():void
		{
			Animation_TreeWalker // need declaration if You use .swc lib in pureAS Flex project
			
			var clipFactory:ClipCacheFactory = ClipCacheFactory.getInstance();
			
			clipFactory.cacheAnimation('Animation_TreeWalker');
			
			var clip:BitmapCache = clipFactory.getAnimation("Animation_TreeWalker");
			clip.play();
			clip.x = 150;
			clip.y = 300;
			addChild(clip);
		}
	}
}
